<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="addressList.title"/></title>
<content tag="heading"><fmt:message key="addressList.heading"/></content>
<meta name="menu" content="AddressMenu"/>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editAddress.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

${buttons}

<display:table name="addressList" cellspacing="0" cellpadding="0" requestURI=""
    id="addressList" pagesize="25" class="table addressList" export="true">

    <display:column property="addId" escapeXml="true" sortable="true"
        url="/editAddress.html" paramId="addId" paramProperty="addId"
        titleKey="address.addId"/>
    <display:column property="addType" escapeXml="true" sortable="true"
         titleKey="address.addType"/>
    <display:column property="addAddress1" escapeXml="true" sortable="true"
         titleKey="address.addAddress1"/>
    <display:column property="addAddress2" escapeXml="true" sortable="true"
         titleKey="address.addAddress2"/>
    <display:column property="addCity" escapeXml="true" sortable="true"
         titleKey="address.addCity"/>
    <display:column property="addState" escapeXml="true" sortable="true"
         titleKey="address.addState"/>
    <display:column property="addZip" escapeXml="true" sortable="true"
         titleKey="address.addZip"/>
    <display:column property="addCounty" escapeXml="true" sortable="true"
         titleKey="address.addCounty"/>
    <display:setProperty name="paging.banner.item_name" value="address"/>
    <display:setProperty name="paging.banner.items_name" value="addresss"/>
</display:table>

${buttons}

<script type="text/javascript">
    highlightTableRows("addressList");
</script>
